package com.diamond.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.diamond.util.StringUtil;

/**
 * Supporder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "supporder", catalog = "diamond")
public class Supporder implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -4579466197339500794L;
	private Long suppOrdMasterId;
	private Long supplierId;
	private Long cliOrdMasterId;
	private String myorderNo;
	private String orderDate;
	private String orderStatus;
	private String orderRemark;
	private Double total;

	// Constructors

	/** default constructor */
	public Supporder() {
	}

	/** full constructor */
	public Supporder(Long supplierId, Long cliOrdMasterId, String myorderNo,
			String orderDate, String orderStatus, String orderRemark,Double total) {
		this.supplierId = supplierId;
		this.cliOrdMasterId = cliOrdMasterId;
		this.myorderNo = myorderNo;
		this.orderDate = orderDate;
		this.orderStatus = orderStatus;
		this.orderRemark = orderRemark;
		this.total = total;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "suppOrdMaster_id", unique = true, nullable = false)
	public Long getSuppOrdMasterId() {
		return this.suppOrdMasterId;
	}

	public void setSuppOrdMasterId(Long suppOrdMasterId) {
		this.suppOrdMasterId = suppOrdMasterId;
	}

	@Column(name = "supplier_id")
	public Long getSupplierId() {
		return this.supplierId;
	}

	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}

	@Column(name = "cliOrdMaster_id")
	public Long getCliOrdMasterId() {
		return this.cliOrdMasterId;
	}

	public void setCliOrdMasterId(Long cliOrdMasterId) {
		this.cliOrdMasterId = cliOrdMasterId;
	}

	@Column(name = "myorder_no", length = 500)
	public String getMyorderNo() {
		return this.myorderNo;
	}

	public void setMyorderNo(String myorderNo) {
		this.myorderNo = myorderNo;
	}

	@Column(name = "order_date", length = 500)
	public String getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}

	@Column(name = "order_status", length = 500)
	public String getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	@Column(name = "order_remark", length = 500)
	public String getOrderRemark() {
		return this.orderRemark;
	}

	public void setOrderRemark(String orderRemark) {
		this.orderRemark = orderRemark;
	}
	@Column(name = "total")
	public Double getTotal() {
		return StringUtil.doubleFormat(total);
	}

	public void setTotal(Double total) {
		this.total = total;
	}
	
	

}